package com.logistics.erp.entity.model;

import com.logistics.erp.entity.domain.ErpPerson;
import lombok.Data;

@Data
public class ErpPersonRow {

    private String personName;

    private String deptCode;

    private String deptName;

    private String pw;

    ErpPersonRow(){}


    ErpPersonRow(ErpPerson erpPerson){
        this.personName = erpPerson.getPersonName();
        this.deptCode = erpPerson.getDeptCode();
        this.deptName = erpPerson.getDeptName();
        this.pw = erpPerson.getPw();
    }

    public static ErpPersonRow build(ErpPerson erpPerson){
        return new ErpPersonRow(erpPerson);
    }
}
